package com.mldong.modules.cms.dto;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import javax.validation.constraints.*;
import com.mldong.validation.Groups;
/**
 * <p>
 * 栏目
 * </p>
 *
 * @author mldong
 * @since 2022-10-23
 */
@Getter
@Setter
@TableName("cms_category")
@ApiModel(value = "CategoryParam对象", description = "栏目")
public class CategoryParam implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键", required = true)
    @TableId(value = "id", type = IdType.AUTO)
    @NotNull(message = "主键不能为空", groups = {Groups.Update.class})
    private Long id;

    @ApiModelProperty(value = "站点id")
    private Long siteId;

    @ApiModelProperty(value = "父id")
    private Long parentId;

    @ApiModelProperty(value = "栏目名称", required = true)
    @NotBlank(message = "栏目名称不能为空")
    private String name;

    @ApiModelProperty(value = "简介")
    private String description;

    @ApiModelProperty(value = "seo关键字")
    private String seoKeywords;

    @ApiModelProperty(value = "seo描述")
    private String seoDesc;

    @ApiModelProperty(value = "大图")
    private String img;

    @ApiModelProperty(value = "内容模型id")
    private Long modelId;

    @ApiModelProperty(value = "栏目模型id")
    private Long categoryModelId;

    @ApiModelProperty(value = "是否单页面")
    private Boolean isPage;

    @ApiModelProperty(value = "是否显示")
    private Boolean isShow;

    @ApiModelProperty(value = "排序")
    private Long sort;

    @ApiModelProperty(value = "栏目首页模板")
    private String categoryTemplate;

    @ApiModelProperty(value = "栏目列表模板")
    private String listTemplate;

    @ApiModelProperty(value = "栏目详情页模板")
    private String showTemplate;


}
